package com.woniuxy.oa.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.woniuxy.oa.entity.WorkPlan;

/**
 * 这是Mapper层的工作计划
 * @author 35925
 *
 */
@Mapper
public interface WorkPlanMapper {
	
	//查询所有人的工作计划
	List<WorkPlan> selectAllWorkPlan();
	
	//添加某人的工作计划
	void insertWorkPlan(WorkPlan workPlan);
	
	//修改某位员工工作计划的方法
	void updateWoekPlan(WorkPlan workPlan);
	
	//删除某位员工的方法，这里使用软删除
	void deleteWorkPlan(Integer w_id);
	
	//根据工作计划id查询工作计划
	WorkPlan selectWorkPlanByW_id(Integer w_id);
	
	//查询总条数的方法
	int selectWorkPlanConditionByPageTotalRecored(WorkPlan workPlan);
	
	//这是按条件查询
	List<WorkPlan> selectWorkPlanConditionByPage(@Param("pageIndex")Integer pageIndex,
			@Param("pageSize")Integer pageSize,@Param("workPlan")WorkPlan workPlan);
	
}
